package com.gmstu.springframework.mvc.servlet;

import java.util.Map;

/**
 * @author John.zhang
 * @version Id: GpModelAndView, v 1.0 2020/8/22 21:35 ZhiYong Exp $
 */
public class GpModelAndView {

    private String viewName;

    private Map<String, ?> model;

    public GpModelAndView(String viewName) {
        this.viewName = viewName;
    }

    public GpModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public String getViewName() {
        return viewName;
    }

    public Map<String, ?> getModel() {
        return model;
    }
}
